package com.local.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "local_timer")
public class LocalTimer {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "uuid")
    private String uuid;

    @Column(name = "car_in_days")
    private String carInDays;

    @Column(name = "car_in_history_days")
    private String carInHistoryDays;

    @Column(name = "car_out_days")
    private String carOutDays;

    @Column(name = "car_out_history_days")
    private String carOutHistoryDays;

    @Column(name = "attr_")
    private String attr;//0表示启用  1表示停用

    @Column(name = "attr2_")
    private String attr2;

    @Column(name = "attr3_")
    private String attr3;

    @Column(name = "attr4_")
    private String attr4;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public String getCarInDays() {
        return carInDays;
    }

    public void setCarInDays(String carInDays) {
        this.carInDays = carInDays == null ? null : carInDays.trim();
    }

    public String getCarInHistoryDays() {
        return carInHistoryDays;
    }

    public void setCarInHistoryDays(String carInHistoryDays) {
        this.carInHistoryDays = carInHistoryDays == null ? null : carInHistoryDays.trim();
    }

    public String getCarOutDays() {
        return carOutDays;
    }

    public void setCarOutDays(String carOutDays) {
        this.carOutDays = carOutDays == null ? null : carOutDays.trim();
    }

    public String getCarOutHistoryDays() {
        return carOutHistoryDays;
    }

    public void setCarOutHistoryDays(String carOutHistoryDays) {
        this.carOutHistoryDays = carOutHistoryDays == null ? null : carOutHistoryDays.trim();
    }

    public String getAttr() {
        return attr;
    }

    public void setAttr(String attr) {
        this.attr = attr == null ? null : attr.trim();
    }

    public String getAttr2() {
        return attr2;
    }

    public void setAttr2(String attr2) {
        this.attr2 = attr2 == null ? null : attr2.trim();
    }

    public String getAttr3() {
        return attr3;
    }

    public void setAttr3(String attr3) {
        this.attr3 = attr3 == null ? null : attr3.trim();
    }

    public String getAttr4() {
        return attr4;
    }

    public void setAttr4(String attr4) {
        this.attr4 = attr4 == null ? null : attr4.trim();
    }
}